{{define "Next/categories.html"}}
<!DOCTYPE html>
<html>
<head>
    {{template "head/head" .}}
    {{template "head/3rdstatistic" .}}
<body>
<div class="main">
    {{template "Next/header" .}}
    <div id="pjax">
        {{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
    <div class="wrapper page">
        <h2 class="page__title">
            <span id="categoriesCount">0</span> <span class="ft-fade ft-13">{{.I18n.Categories2}}</span>
        </h2>
        {{if eq (len .Categories) 0}}
        <div class="ft-center">
            {{.I18n.NoData}}
        </div>
        {{end}}
        {{range .Categories}}
        <div class="page__item">
            <h3>
                <a href="{{.URL}}" class="categories__header">
                    {{.Title}}
                    <span class="ft-13 ft-gray"><!--{{.ArticleCount}} {{$.I18n.Article2}}--></span>
                </a>
            </h3>
            <div class="ft-gray ft-13">{{.Description}}</div>
            {{range .Tags}}
            <a href="{{.URL}}" class="tag">{{.Title}}</a>
            {{end}}
        </div>
        {{end}}
    </div>
    {{template "Next/side" .}}
        {{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
    </div>
    {{template "Next/footer" .}}
</div>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<script>
  increase({{len .Categories}}, 1000, 'categoriesCount', 0)
</script>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</body>
</html>
{{end}}